home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v10n20.arc / UMBFILES.ARC / UMBFIL.DOC < prev    next >
Text File  |  1991-10-28  |  4KB  |  87 lines

  1. UMBFILES.COM
  2.  
  3. Jeff Prosise                    November 26, 1991 (Utilities)
  4.  
  5.  
  6. Purpose: UMBFILES is one of our first programs to make use of
  7. upper memory blocks.  In doing so, it can free up as much as 15K
  8. of RAM.
  9.  
  10. Syntax: UMBFILES[=]nn
  11.  
  12. This is where nn is the number of files you want to allocate space for
  13. in upper memory. Valid values range from 1 to 247. An additional
  14. restriction is that the sum of UMBFILES and files already
  15. allocated may not exceed 255, because DOS doesn't support more
  16. than 255 files open in the system at any one time. For example,
  17. if you boot with the statement FILES=20 in CONFIG.SYS and then
  18. run UMBFILES, the maximum value UMBFILES will accept for nn is
  19. 235. If you allocate space for 20 more files with the statement
  20. UMBFILES=20 and then run UMBFILES again, the most it will accept
  21. is 215.
  22.      You can run UMBFILES as many times as you like. Each time,
  23. the SFT is extended by the number of entries indicated. You can
  24. determine the number of SFT entries the system currently contains
  25. (and thus how many files can be open in the system at once) using
  26. the NUMFILES utility published in the November 12, 1991, Tutor
  27. column. NUMFILES (along with its source code) is available on
  28. PC MagNet.
  29.      The most efficient way to use UMBFILES is to place the
  30. statement FILES=8 in CONFIG.SYS and place a UMBFILES command
  31. allocating additional space for files in AUTOEXEC.BAT. For example,
  32. if you currently boot with the statement FILES=60, change it to
  33. FILES=8 and add the command
  34.                           UMBFILES=52
  35.  
  36. to AUTOEXEC.BAT. Doing so will save you 3,072 bytes (3K) of memory.
  37. The 8 SFT entries created by the FILES command will be located in
  38. conventional memory; the 52 set up by UMBFILES will be in upper
  39. memory. Why not place all 60 in upper memory? The minimum value DOS
  40. will accept for FILES is 8, so the first 8 SFT entries must always
  41. be in conventional memory. Any entries beyond that may be placed
  42. in upper memory with UMBFILES.
  43.      To use UMBFILES, you must be running DOS 5.0 and have a
  44. 386 or 486 configured for loading programs and device drivers in
  45. upper memory. At a minimum, this means that:
  46.  
  47. -  You must load HIMEM.SYS in CONFIG.SYS;
  48. -  You must also load EMM386.EXE with a RAM or NOEMS parameter;
  49. -  CONFIG.SYS must contain the statement DOS=UMB (or DOS=HIGH,UMB);
  50. -  Your PC must contain at least 384K of extended memory.
  51.  
  52.      If UMBFILES reports that the upper memory area is not
  53. available, then it was unable to allocate a block of upper memory
  54. probably because your system isn't set up properly for UMBs. If
  55. this happens, check your CONFIG.SYS file to make sure it contains
  56. the required statements and that EMM386.EXE is indeed being loaded
  57. with a RAM or NOEMS parameter. Without one of these two parameters,
  58. EMM386.EXE will not create the upper memory blocks that UMBFILES
  59. needs.
  60.      If UMBFILES reports ``Insufficient memory,'' it means that
  61. the upper memory area is available but there isn't a UMB large
  62. enough to hold the number of SFT entries you requested. To determine
  63. the size of the largest free UMB, just type MEM /C. If there is some
  64. unallocated upper memory remaining, you may be able to use it by
  65. decreasing the requested number of SFT entries. You should note that
  66. each entry requires approximately 59 bytes of upper memory.
  67.      Other error messages from UMBFILES include ``Sum of FILES
  68. and UMBFILES cannot exceed 255,'' indicating that the number of
  69. additional SFT entries that you requested would push the total to
  70. more than 255, and ``Invalid parameter (cannot be 0),'' which you
  71. get if you type UMBFILES=0. UMBFILES will also respond with an
  72. error message if the number you enter for nn is invalid (for
  73. example, if the entry contains any nonnumeric characters), if you
  74. attempt to run it with any version of DOS other than 5.x, or if
  75. there is a syntax error. If UMBFILES succeeds in extending the
  76. SFT, it will display the message ``System File Table extended,''
  77. indicating that the entries you requested were added to the SFT.
  78.      A final note concerning the use of UMBFILES relates to its
  79. on-line help feature. You can get help with any DOS 5.0 command by
  80. running it with a /? switch. Similarly, you can get help with
  81. UMBFILES by typing:
  82.                       UMBFILES /?
  83.  
  84. In response, UMBFILES displays a one-line description of itself
  85. followed by a description of its syntax and other helpful
  86. information.
  87.